package com.example.dubbo.service.impl;

// 如果DemoServiceImpl所在的package与DemoService相同则无需import DemoService
import com.example.dubbo.service.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@DubboService
@Service
public class DemoServiceImpl implements DemoService {
    public String sayHello(String name) {
        return "Hello, " + name;
    }
}
